<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>待办事项列表</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <div class="container">
    <div class="header">
      <h1>今日待办</h1>
      <div id="current-time" class="time-display"></div>
    </div>
    <div class="input-container">
      <input type="text" id="todo-input" placeholder="添加新的待办事项...">
      <button id="add-btn">添加</button>
    </div>

    <!-- 标签页切换组件 -->
    <div class="tabs">
      <button id="tab-active" class="tab-button active">
        未完成
        <span id="active-count" class="tab-count">0</span>
      </button>
      <button id="tab-completed" class="tab-button">
        已完成
        <span id="completed-count-tab" class="tab-count">0</span>
      </button>
    </div>

    <ul id="todo-list"></ul>
  </div>
  <div class="footer">
    <div class="stats">
      <span id="task-count">总任务数: 0</span>
    </div>
    <div class="actions">
      <button id="clear-completed">清除已完成</button>
      <button id="clear-all">清空全部</button>
    </div>
  </div>

  <script src="popup.js"></script>
</body>

</html>